export const request = (params) => {
    return new Promise((resolve, reject) => {
        var reqTask = wx.request({
            ...params,
            success:(res)=>{
                resolve(res);
            },
            fail:(err)=>{
                reject(err);
            }
        });
        console.log(...params);
    });
}